var app = getApp();
Page({
    onLoad: function (options) {
        //调用API从本地缓存中获取数据
        if (options.type == 'already') {
            this.setData({
                consultData: app.globalData.hasRecord
            })
        } else {
            this.setData({
                consultData: app.globalData.consultData
            })
        }
        console.log(document.querySelector("contact-button"));
    },
    data: {
        topInfo: {
            backImage: '../../images/backImage.jpg',
            mainTitle: '好头发脱发问卷调查',
            description: '请认真填写以下内容，以便头发专家给出准确结果，谢谢。'
        },
        buttonImg: {
            backImage: '../../images/button_question.png',
        },
        consultData: {
        }
    }
})

